import yaml

from autoTest_brtcApi.utils.get_path import get_yaml_path


def write_yaml(filename, content):
    with open(get_yaml_path(filename),'w',encoding='utf-8') as f:
        yaml.safe_dump(content,f,default_style=False,allow_unicode=True)


if __name__ == "__main__":
    content = {"userId": "5858558",
               "token": 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9'
                        '.eyJhdXRob3NfaWQiOiIxMDAwMyIsInVzZXJfbmFtZSI6IjE1MDgzOTQyNzU3IiwicGFzc193b3JkIjoiZTEwYWRjMzk0OWJhNTlhYmJlNTZlMDU3ZjIwZjg4M2UiLCJleHAiOjE3MzU5MTE5NjcuNTE1NzUzLCJpYXQiOjE3MzU5MTE5NjQuNTE1NzU4OH0.bF5mqPQ1oRvjqUFfOPoTiwOPWiNOxRCFw1ZgDeLrL1Q'}
    write_yaml('tmp.yaml', content)





